package top.zackyoung.springboot

import org.mybatis.spring.annotation.MapperScan
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.domain.EntityScan
import org.springframework.boot.autoconfigure.{EnableAutoConfiguration, SpringBootApplication}
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.context.annotation.{ComponentScan, Import}
import org.springframework.data.jpa.repository.config.EnableJpaRepositories
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
import top.zackyoung.springboot.ScalaApplication.main

/**
 * Hello world!
 *
 */
@EnableConfigurationProperties
//@EnableJpaRepositories(basePackages =Array{"top.zackyoung.springboot.jpa"})
@MapperScan(basePackages =Array{"top.zackyoung.springboot.mapper"})
@SpringBootApplication(scanBasePackages = Array("top.zackyoung.springboot.*"))
class ScalaApplication

object ScalaApplication extends App {
    SpringApplication.run(classOf[ScalaApplication], args:_*)
}
